function get_time() {
	$.ajax({
		url: "/time",
		timeout: 10000, //超时时间设置为10秒；
		success: function(data) {
			$("#time").html(data)
		},
		error: function(xhr, type, errorThrown) {

		}
	});
}

function get_c2_data() {
	$.ajax({
		url:"/c2",
		timeout: 10000, //超时时间设置为10秒；
		success: function(data) {
			mydata = data.data
			option && ec_center.setOption(mydata)
		},
		error: function(xhr, type, errorThrown) {

		}
	})
}

function get_l1_data() {
	$.ajax({
		url:"/l1",
		timeout: 10000, //超时时间设置为10秒；
		success: function(data) {
			l1_option.xAxis.data = data.required
			l1_option.series[0].data = data.salary
			l1_option && ec_left1.setOption(l1_option)
		},
		error: function(xhr, type, errorThrown) {

		}
	})
}

function get_l2_data() {
	$.ajax({
		url:"/l2",
		success: function(data) {
			l2_option.series[0].data = data.data
			l2_option && ec_left2.setOption(l2_option)
		},
		error: function(xhr, type, errorThrown) {

		}
	})
}

function get_r1_data() {
	$.ajax({
		url:"/r1",
		success: function(data) {
			r1_option.xAxis.data = data.recruiters
			r1_option.series[0].data = data.salary
			r1_option && ec_right1.setOption(r1_option)
		},
		error: function(xhr, type, errorThrown) {

		}
	})
}

function get_r2_data() {
	$.ajax({
		url:"/r2",
		success: function(data) {
			r2_option.series[0].data = data.data
			r2_option && ec_right2.setOption(r2_option)
		},
		error: function(xhr, type, errorThrown) {

		}
	})
}

get_time()
get_c2_data()
get_l1_data()
get_l2_data()
get_r1_data()
get_r2_data()